<%@page import="java.util.List"%>
<%@page import="com.demoweb.model.dto.Membership"%>
<%@page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>

<!DOCTYPE html>

<html>
<head>
	<meta charset="utf-8" />
    <title></title>
    <link rel="Stylesheet" href="/demoweb/styles/default.css" />
</head>
<body>
    <div id="pageContainer">
    
    <%--
    <jsp:include page="/WEB-INF/views/include/header.jsp" /> 
     --%>

	<%--
    <%@ include file="/WEB-INF/views/include/header.jsp" %> 
  	--%>
  	
	<%
  			pageContext.include("/WEB-INF/views/include/header.jsp");
  		%>
	
        </div>    
        <div id="content">
        	<br /><br />
        	<div style='text-align:center'>
        		[&nbsp;<a href="registerform.action">사용자 등록</a>&nbsp;]
        	</div>
        	<br /><br />        	
        	<table border="1" align="center" width="700px">
        		<tr style="height:30px;background-color:orange">
        			<td>아이디</td>
        			<td>이메일</td>
        			<td>사용자구분</td>
        			<td>활성화여부</td>
        			<td>등록일자</td>
        		</tr>

				<%
					List<Membership> members = 
							(List<Membership>)request.getAttribute("members");
				%>
				<%
					for (Membership member : members) {
				%>
        		<tr style="height:30px">
        			<td>
        				<a href='/demoweb/member/view.action?memberid=<%= member.getMemberId() %>'>
        					<%= member.getMemberId() %>
        				</a>
        			</td>
        			<td><%= member.getEmail() %></td>
        			<td><%=  %></td>
        			<td><%=  %></td>
        			<td><%= member.getRegDate() %></td>
        		</tr>
        		<% } %>

        	</table>
        	
        </div>
    </div>
    
</body>
</html>









